package oopCourse;

class Student {
    private String name;
    private int id;
    private String banji;
    private String gender;
    private int age;
    private String personality;

    public Student(String name,int id,String banji,String gender,int age,String personality){
        this.name=name;
        this.id=id;
        this.banji=banji;
        this.gender=gender;
        this.age=age;
        this.personality=personality;
    }

    public String getName(){
        return name;
    }
    public int getId(){
        return id;
    }
    public String getBanji(){
        return banji;
    }
    public String getGender(){
        return gender;
    }
    public int getAge(){
        return age;
    }
    public String getPersonality(){
        return personality;
    }
    public void getInformation(){
        System.out.println("姓名:"+name+" 学号:"+id+" 班级:"+banji+" 性别:"+gender+" 年龄:"+age+" 性格:"+personality);
    }
    public static void main(String[] args) {
        Student stu1 = new Student("小华", 12, "1", "女", 20, "善良");
        Student stu2 = new Student("小亮", 13, "2", "男", 18, "诚实");
        Student stu3 = new Student("小米", 14, "1", "女", 18, "诚实");
        stu1.getInformation();
        stu2.getInformation();
        stu3.getInformation();
    }
}
